import table from '@/utils/mixins/table'
import OrderCard from './components/OrderCard.vue'

export default {
  mixins: [table],

  components: {
    OrderCard,
  },

  data () {
    return {
      getOrdersAsync: null,

      loanStatus: {
      },
    }
  },

  created () {
    this.getOrdersAsync = this.tableHooksRequest()
  },

  computed: {
    tableParams () {
      const { per_page, page } = this.pagination
      return [5, page]
    },
  },

  methods: {
    // 详情
    handlerDetails ({ task_id: tid }) {
      if (!tid) return false

      this.$router.push({
        name: 'ExamineAwaitContent',
        params: {
          tid,
        },
      })
    },
  },
}
